const initialState = null;
export default function searchReducer(preState = initialState, action) {
  const { type, data } = action;
  if (type === "SEARCH") {
    console.log("进入reducer", data);
    return data;
  }
  return preState;
}
